package com.ymt.reliable.message.domain;

import java.util.Date;

public class TransactionMessage extends BaseDomain {
    private String messageId;
    private String messageBody;
    private String consumerQueue;
    private Integer messageSendTimes = 0;
    private Integer messageConfirmTimes = 0;
    private String areadlyDead = "0";
    private String status;
    private String remark;
    private String field1;
    private String field2;
    private String field3;
    private Date lastPushTime;

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getMessageBody() {
        return messageBody;
    }

    public void setMessageBody(String messageBody) {
        this.messageBody = messageBody;
    }

    public String getConsumerQueue() {
        return consumerQueue;
    }

    public void setConsumerQueue(String consumerQueue) {
        this.consumerQueue = consumerQueue;
    }

    public Integer getMessageSendTimes() {
        return messageSendTimes;
    }

    public void setMessageSendTimes(Integer messageSendTimes) {
        this.messageSendTimes = messageSendTimes;
    }

    public String getAreadlyDead() {
        return areadlyDead;
    }

    public void setAreadlyDead(String areadlyDead) {
        this.areadlyDead = areadlyDead;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getField1() {
        return field1;
    }

    public void setField1(String field1) {
        this.field1 = field1;
    }

    public String getField2() {
        return field2;
    }

    public void setField2(String field2) {
        this.field2 = field2;
    }

    public String getField3() {
        return field3;
    }

    public void setField3(String field3) {
        this.field3 = field3;
    }

    public Date getLastPushTime() {
        return lastPushTime;
    }

    public void setLastPushTime(Date lastPushTime) {
        this.lastPushTime = lastPushTime;
    }

    public Integer getMessageConfirmTimes() {
        return messageConfirmTimes;
    }

    public void setMessageConfirmTimes(Integer messageConfirmTimes) {
        this.messageConfirmTimes = messageConfirmTimes;
    }

    public TransactionMessage addMessageSendTimes() {
        this.messageSendTimes = this.messageSendTimes + 1;
        return this;
    }

    public TransactionMessage addMessageConfirmTimes() {
        this.messageConfirmTimes = this.messageConfirmTimes + 1;
        return this;
    }
}
